import 'dart:typed_data';

import '../hj_utils/const.dart';
import 'community/community_section_model.dart';

//涂鸦的模型
class GraffitiModel {
  String? imgPath; //原图文件路径
  Uint8List? showGraffitiData; //显示的涂鸦二进制数据
  Uint8List? graffitiData; //上传涂鸦二进制数据

  GraffitiModel({
    this.imgPath,
    this.graffitiData,
    this.showGraffitiData,
  });
}

///视频上传model
class UploadVideoModel {
  UploadType uploadType = UploadType.UPLOAD_IMG;

  ///视频本地地址
  String? videoLocalPath;
  String? localCoverImg;

  ///封面本地地址
  List<String> localPicList = [];
  List<String> seriesCover = [];
  List<CommunityTagModel> selectedTagList = [];
  List<String> get selectedTagIdList {
    return selectedTagList.map((e) => e.id ?? "").toList();
  }

  int? coins = 0;

  int freeTime = 3;
  int maxVideoTime = 0;

  bool isActivity = false;

  String? actor;

  String? city;

  String? via;

  String? title;

  String? videoRemotePath;

  String? videoFileId;

  String? coverRemotePath;
  String? fileMD5;

  GraffitiModel? graffitiModel; //ai脱衣的涂鸦模型

  updateStripModel(GraffitiModel? model) {
    graffitiModel = model;
  }
}
